package com.briup.smartcity.mapper.extend;

import com.briup.smartcity.bean.Article;
import com.briup.smartcity.bean.extend.ArticleExtend;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ArticleExtendMapper {
    //通过标题、状态、栏目分页查找资讯信息
    List<ArticleExtend> findByIdWithStatusAndTitle(Integer categoryId, Integer status, String title);

    //更新资讯信息
    void changeStatus(Integer id, Integer status);

    //通过Id获取资讯详情信息
    ArticleExtend findByIdWithCategoryAndUser(Integer id);

    //aa
    List<Article> findArticle();


}
